package ua.at.javac.cron;

/**
 * Класс содержит значения погоды за одну фазу
 * 
 * @author Michael.Michaelovich
 * @version 103
 * @since 2012
 */
public class JournalRow {

	private String upToDate;
	private int site_id;
	private int period_id;
	private int cloudiness;
	private int temperature;
	private double precipitation;
	private int humidity;
	private int pressure;
	private int windSpeed;
	private int wind_id;
	private int forecast_day;
	
	public JournalRow(	String  upToDate,
							int site_id,
							int period_id,
							int cloudiness,
							int temperature,
							double precipitation,
							int humidity,
							int pressure,
							int windSpeed,
							int wind_id,
							int forecast_day) {
		this.setUpToDate(upToDate);
		this.setSite_id(site_id);
		this.setPeriod_id(period_id);
		this.setCloudiness(cloudiness);
		this.setTemperature(temperature);
		this.setPrecipitation(precipitation);
		this.setHumidity(humidity);
		this.setPressure(pressure);
		this.setWindSpeed(windSpeed);
		this.setWind_id(wind_id);
		this.setForecast_day(forecast_day);
	}
		
	public String getText() {
		return  "'"+upToDate+"'" + ","+
				String.valueOf(site_id)+","+
				String.valueOf(period_id)+ "," +
				String.valueOf(cloudiness)+ "," +
				String.valueOf(temperature)+ "," +
				String.valueOf(precipitation)+ "," +
				String.valueOf(humidity)+ "," +
				String.valueOf(pressure)+ "," +
				String.valueOf(windSpeed)+ "," +
				String.valueOf(wind_id)+ "," +
				String.valueOf(forecast_day); 
	}
	
	public String getUpToDate() {
		return upToDate;
	}
	
	public void setUpToDate(String upToDate) {
		this.upToDate = upToDate;
	}
	
	public int getPeriod_id() {
		return period_id;
	}
	
	public void setPeriod_id(int period_id) {
		this.period_id = period_id;
	}
	
	public int getCloudiness() {
		return cloudiness;
	}
	
	public void setCloudiness(int cloudiness) {
		this.cloudiness = cloudiness;
	}
	
	public int getTemperature() {
		return temperature;
	}
	
	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}
	
	public double getPrecipitation() {
		return precipitation;
	}
	
	public void setPrecipitation(double precipitation) {
		this.precipitation = precipitation;
	}
	
	public int getHumidity() {
		return humidity;
	}
	
	public void setHumidity(int humidity) {
		this.humidity = humidity;
	}
	
	public int getPressure() {
		return pressure;
	}
	
	public void setPressure(int pressure) {
		this.pressure = pressure;
	}
	
	public int getWindSpeed() {
		return windSpeed;
	}
	
	public void setWindSpeed(int windSpeed) {
		this.windSpeed = windSpeed;
	}
	
	public int getWind_id() {
		return wind_id;
	}
	public void setWind_id(int wind_id) {
		this.wind_id = wind_id;
	}
	
	public int getForecast_day() {
		return forecast_day;
	}
	
	public void setForecast_day(int forecast_day) {
		this.forecast_day = forecast_day;
	}
	
	public int getSite_id() {
		return site_id;
	}
	
	public void setSite_id(int site_id) {
		this.site_id = site_id;
	}
}